const a = 1
const fs = require('fs')
setTimeout(() => {
  console.log('timeout')
}, 0)
setImmediate(() => {
  console.log('immediate')
})

// timeout immediate
fs.readFile('./event-cycle.js', (err, data) => {
  setTimeout(() => {
    console.log('timeout')
  }, 0)
  setImmediate(() => {
    console.log('immediate')
  })
})
// immediate timeout
